package com.example.design01.Service;

import com.example.design01.Bean.AttendanceBean;
import com.example.design01.Dao.AttendanceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AttendanceServiceImpl implements AttendanceService {
@Autowired
private AttendanceMapper attendanceMapper;

    @Override
    public List<AttendanceBean> checkAttendance() {
        return attendanceMapper.checkAttendance();
    }

    @Override
    public int addAttendance(AttendanceBean attendanceBean) {
        return attendanceMapper.addAttendance(attendanceBean);
    }
}
